package com.zmn.plat.dubbo.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import com.alibaba.dubbo.config.ProviderConfig;

/**
 * @author liuhaichuan
 * @version v1.0
 * @since 2020/1/14 10:26
 **/
@Configuration
public class DubboConfig {

    @Bean
    @ConfigurationProperties(prefix = "zmn.dubbo.provider")
    public ProviderConfig providerConfig() {
        ProviderConfig providerConfig = new ProviderConfig();
        providerConfig.setRetries(0);
        return new ProviderConfig();
    }

}
